PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Window Manager >

Programming With the Mac OS 8.5 Window Manager


RemoveWindowProxy

Dissociates a file from a window.

pascal OSStatus RemoveWindowProxy (WindowPtr window);
window
A value of type WindowPtr . Pass a pointer to the window for which you wish to remove the associated file.
function result
A result code. See Result Codes.
DISCUSSION

The RemoveWindowProxy function redraws the window title bar after removing all data associated with a given file, including the proxy icon, path menu, and file data.

SPECIAL CONSIDERATIONS

With Mac OS 8.5, you must save and restore the current graphics port--by calling the QuickDraw functions GetPort and SetPort --around each call to the RemoveWindowProxy function. See Supporting Window Proxy Icons for examples of how your application can provide proxy icon support in its document windows.

VERSION NOTES

Available with Mac OS 8.5 and later.


© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)